import { defineStore } from 'pinia'
import { ref, computed, reactive} from 'vue'

export const useUserStore = defineStore('USER', () => {
    const count = ref(0)
    const increment = () => {
        count.value ++
    }
    return {
        count,
        increment
    }
})

export const usePageControllerStore = defineStore('PAGE_CONTROLL', ()=>{
    const meListTabIndex = ref(1)
    const setListTabIndex = (i)=>{
        meListTabIndex.value = i
    }
    return {
        meListTabIndex,
        setListTabIndex,
    }
})